package routers

import (
	"device-admin/internal/app/web/controller"

	"github.com/gin-gonic/gin"
)

func materialMap(rg *gin.RouterGroup) {
	// 素材
	rg.POST("material-add", controller.Material{}.Add)
	rg.POST("material-list", controller.Material{}.List)
	rg.POST("material-usable-list", controller.Material{}.UsableList)
	rg.POST("material-sound", controller.Material{}.Sound)
	rg.POST("material-change-status", controller.Material{}.ChangeStatus)
	rg.POST("material-audit-list", controller.Material{}.AuditList)
	rg.POST("material-audit", controller.Material{}.Audit)
	rg.POST("material-audit-log", controller.Material{}.AuditLog)
	rg.POST("material-change-folder", controller.Material{}.ChangeFolder)

	// 身份
	rg.POST("theme-save", controller.Material{}.ThemeSave)
	rg.POST("theme-list", controller.Material{}.ThemeList)
	rg.POST("theme-detail", controller.Material{}.ThemeDetail)
	rg.POST("bind-device", controller.Material{}.BindDevice)
	rg.POST("theme-delete", controller.Material{}.ThemeDelete)
	rg.POST("condition-options", controller.Material{}.ConditionOptions)
	rg.POST("default-theme-config", controller.Material{}.DefaultThemeConfig)

	// 素材分组
	rg.POST("material-folder-add", controller.Material{}.FolderAdd)
	rg.POST("material-folder-save", controller.Material{}.FolderSave)
	rg.POST("material-folder-list", controller.Material{}.FolderList)
	rg.POST("material-folder-sort", controller.Material{}.FolderSort)
	rg.POST("material-folder-delete", controller.Material{}.FolderDelete)
}
